const express = require('express')
const router = express.Router()
const adminHandler = require("../router_handler/admin.js");

router.get('/admin/getUserMenu',adminHandler.getUserMenu)
router.get('/admin/getAuthByRoleId',adminHandler.getAuthByRoleId)
router.get('/admin/getRoleInfo',adminHandler.getRoleInfo)
router.get('/admin/getUserInfo',adminHandler.getUserInfo)
router.get('/admin/getUserRole',adminHandler.getUserRole)
router.get('/admin/getUserRole',adminHandler.getUserRole)
router.get('/admin/getAllAuth',adminHandler.getAllAuth)
router.get('/admin/getAllRole',adminHandler.getAllRole)
router.post('/admin/addUserInfo',adminHandler.addUserInfo)
router.post('/admin/addRolesByUserId',adminHandler.addRolesByUserId)
router.post('/admin/addAuthByRoleId',adminHandler.addAuthByRoleId)
router.post('/admin/addRole',adminHandler.addRole)
router.patch('/admin/updateUserInfo',adminHandler.updateUserInfo)
router.patch('/admin/editRole',adminHandler.editRole)
router.delete('/admin/deleteUserInfo',adminHandler.deleteUserInfo)
router.delete('/admin/deleteRoleByUserId',adminHandler.deleteRoleByUserId)
router.delete('/admin/deleteRoleById',adminHandler.deleteRoleById)
router.delete('/admin/deleteAuthByRoleId',adminHandler.deleteAuthByRoleId)
module.exports = router